/**
 * Created by 95 on 1/3/14.
 */

//新增ui.box.query方法
jQuery.extend(ui.box, {
    query: function (content, title, ok, cancel) {
        ui.box.show('<div style="padding: 20px;">' +
            '<div class="mb10" style="min-width: 180px;min-height: 60px;font-size: 12px;">' + content +
            '</div>' +
            '<div class="right" ><a id="query_ok" class="mr10 btn-green-big">确定</a>' +
            '<a id="query_cancel" class=" btn-grey-white"><span>取消</span></a></div>' +
            '<div class="clearfix"></div>', title);
        $('#query_ok').click(function () {
            ok();
        });
        $('#query_cancel').click(function () {
            ui.box.close();
            cancel();
        });
    }
});